Skip to content

fix(plugin-oracle): make channel-fatal classification testable to unbreak test target#1740

Merged
datlechin merged 1 commit into
TableProApp:mainfrom
desperadoxhy:fix/oracle-channel-fatal-test
Jun 21, 2026
Merged

fix(plugin-oracle): make channel-fatal classification testable to unbreak test target#1740
datlechin merged 1 commit into
TableProApp:mainfrom
desperadoxhy:fix/oracle-channel-fatal-test

Conversation

@desperadoxhy

Copy link
Copy Markdown
Contributor

问题

main HEAD 的 TableProTests/Plugins/OracleConnectionErrorTests.swift(PR #1723 引入)引用 OracleConnectionWrapper.isChannelFatalCode,但 OracleConnectionWrapper 是 OracleDriverPlugin 的 plugin 内部类型,app/test target 通过 @testable import TablePro 看不到它,导致整个 TableProTests target 编译失败(exit 65),macOS App Tests 全部无法运行,并阻塞其他 PR 的 CI。

修复

isChannelFatalCode 的纯字符串分类逻辑提到 TableProPluginKit 的 public OracleChannelFatalCode(TableProPluginKit 已有 PluginDriverError / SSLHandshakeError / AWSAuthError 等 driver 特定 error 类型作为先例)。OracleConnectionWrapper 转调,行为不变。测试改为 import TableProPluginKit 测可见类型。

PluginKit 改动为新增一个 public enum,纯 additive,无 ABI bump,无需 version bump。

验证

  • App target BUILD SUCCEEDED
  • TableProTests target 编译通过(cannot find 'OracleConnectionWrapper' 消除)
  • OracleConnectionErrorTests 6 断言全绿
  • PluginKit diff 纯 additive(新增 public enum,无现有 public symbol 改动)

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Before we can merge this PR, you need to sign our Contributor License Agreement.

To sign, please comment below with:

I have read the CLA Document and I hereby sign the CLA.


I have read the CLA Document and I hereby sign the CLA.


xuhengyu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@desperadoxhy

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA.

@datlechin datlechin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@datlechin datlechin merged commit 922cfc7 into TableProApp:main Jun 21, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants